package com.ruoyi.project.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.project.mapper.ExpenseAppMapper;
import com.ruoyi.project.domain.ExpenseApp;
import com.ruoyi.project.service.IExpenseAppService;

/**
 * 费用申请单信息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-04-04
 */
@Service
public class ExpenseAppServiceImpl implements IExpenseAppService 
{
    @Autowired
    private ExpenseAppMapper expenseAppMapper;

    /**
     * 查询费用申请单信息
     * 
     * @param appId 费用申请单信息主键
     * @return 费用申请单信息
     */
    @Override
    public ExpenseApp selectExpenseAppByAppId(Long appId)
    {
        return expenseAppMapper.selectExpenseAppByAppId(appId);
    }

    /**
     * 查询费用申请单信息列表
     * 
     * @param expenseApp 费用申请单信息
     * @return 费用申请单信息
     */
    @Override
    public List<ExpenseApp> selectExpenseAppList(ExpenseApp expenseApp)
    {
        return expenseAppMapper.selectExpenseAppList(expenseApp);
    }

    /**
     * 新增费用申请单信息
     * 
     * @param expenseApp 费用申请单信息
     * @return 结果
     */
    @Override
    public int insertExpenseApp(ExpenseApp expenseApp)
    {
        return expenseAppMapper.insertExpenseApp(expenseApp);
    }

    /**
     * 修改费用申请单信息
     * 
     * @param expenseApp 费用申请单信息
     * @return 结果
     */
    @Override
    public int updateExpenseApp(ExpenseApp expenseApp)
    {
        return expenseAppMapper.updateExpenseApp(expenseApp);
    }

    /**
     * 批量删除费用申请单信息
     * 
     * @param appIds 需要删除的费用申请单信息主键
     * @return 结果
     */
    @Override
    public int deleteExpenseAppByAppIds(Long[] appIds)
    {
        return expenseAppMapper.deleteExpenseAppByAppIds(appIds);
    }

    /**
     * 删除费用申请单信息信息
     * 
     * @param appId 费用申请单信息主键
     * @return 结果
     */
    @Override
    public int deleteExpenseAppByAppId(Long appId)
    {
        return expenseAppMapper.deleteExpenseAppByAppId(appId);
    }
}
